<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>百顺通云-后台发票详情页面</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonCSS.jsp"></jsp:include>
    </head>
    <body class="skin-blue">
    	<input type="hidden" id="invoiceId" value="${invoiceInfo.invoiceId}"/>
        <!-- 公用头部 -->
        <jsp:include page="../../admin/commonHeader.jsp"></jsp:include>
       
        <div class="wrapper row-offcanvas row-offcanvas-left">
            
            <!-- 公用导航 -->
            <jsp:include page="../../admin/commonMenu.jsp"></jsp:include>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        发票管理
                        <small>发票详情</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                        <li class="active">发票管理</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                    <!-- Small boxes (Stat box) -->
                    <div class="row fixrowscroll">
                        
                        <!-- table数据 -->
                        <div class="box-body table-responsive">
                            <div class="dataTables_wrapper form-inline fixwrapperscroll" role="grid">
                                <div class="row">
                                    <div class="col-xs-6"></div>
                                    <div class="col-xs-6"></div>
                                </div>
			                	<table class="table table-bordered table-hover dataTable">
									<tbody>
										<tr>
											<td width="20%" class="taright">用户名：</td>
											<td width="30%"><span>
												<c:if test="${invoiceInfo.userEmail != '' && invoiceInfo.userEmail != null}">${invoiceInfo.userEmail}</c:if>
					                			<c:if test="${invoiceInfo.userEmail == '' || invoiceInfo.userEmail == null}">${invoiceInfo.userTel}</c:if>
											</span></td>
											<td width="20%" class="taright">发票抬头：</td>
											<td><span>${invoiceInfo.invoiceTitle}</span></td>
										</tr>
										<tr class="alt">
											<td width="20%" class="taright">发票金额（元）：</td>
											<td width="30%"><span><fmt:formatNumber value="${invoiceInfo.invoiceMoney}" pattern="#0.00"/></span></td>
											<td width="20%" class="taright">开票时间：</td>
											<td><span><fmt:formatDate value="${invoiceInfo.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">开具类型：</td>
											<td width="30%"><span>
											<c:if test="${invoiceInfo.openType==0}">个人</c:if>
											<c:if test="${invoiceInfo.openType==1}">企业</c:if>
											</span>
											</td>
											<td width="20%" class="taright">发票类型：</td>
											<td><span>
											<c:if test="${invoiceInfo.invoiceType==0}">增值税普通发票</c:if>
											<c:if test="${invoiceInfo.invoiceType==1}">增值税专用发票</c:if>
											</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">收件人：</td>
											<td width="30%"><span>${invoiceInfo.receiverName}</span>
											</td>
											<td width="20%" class="taright">收件人电话：</td>
											<td><span>${invoiceInfo.userTell}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">寄送地址：</td>
											<td width="30%"><span> ${invoiceInfo.provinceCodeName}${invoiceInfo.cityCodeName} ${invoiceInfo.areaCodeName} ${invoiceInfo.streetAddress}</span>
											</td>
											<td width="20%" class="taright">发票状态：</td>
											<td><span>
												<c:if test="${invoiceInfo.invoiceState==0}">未索取</c:if>
												<c:if test="${invoiceInfo.invoiceState==1}">未邮寄</c:if>
												<c:if test="${invoiceInfo.invoiceState==2}">已邮寄</c:if>
											</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">快递类型：</td>
											<td width="30%"><span>${invoiceInfo.deliveryType}</span></td>
				                			
											<td width="20%" class="taright">快递单号：</td>
											<td width="30%"><span>${invoiceInfo.deliveryNum}
											</span></td>
										</tr>
									</tbody>
								</table>
								
								<div>
									<c:if test="${invoiceInfo.invoiceState == 1}">
										<button type="button" class="btn btn-primary" id="update">邮寄发票</button>
									</c:if>
									<a href="javascript:history.back(-1)"><button type="button" class="btn btn-primary">返回</button></a>
								</div>
                            </div>
                        </div>


                    </div><!-- /.row -->
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

		<script type="text/javascript">
			var currentMenu = 'financeManager';
		</script>
        <!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonJs.jsp"></jsp:include>
		
        <script src="/js/admin/financeManager/invoiceManager.js"></script>
        

    </body>
</html>
